package cn.com.nes.site.entity;

import org.apache.commons.lang.StringUtils;

public enum BimEnum {
	//管件名称
	jointName_1(1,"90°弯头"),
	jointName_2(2,"45°弯头"),
	jointName_3(3,"直接"),
	jointName_4(4,"异径直接"),
	jointName_5(5,"正三通"),
	jointName_6(6,"异径三通"),
	jointName_7(7,"三通"),
	jointName_8(8,"四通"),
	jointName_13(13,"圆管变径直接"),
	jointName_14(14,"方管变径直接"),
	jointName_15(15,"扁管变径直接"),
	jointName_16(16,"椭圆管变径直接"),
	jointName_17(17,"圆管转方管直接"),
	jointName_18(18,"圆管转扁管直接"),
	jointName_20(20,"其他弯头"),
	
	brancheName_21(21,"分歧管"),
	
	//保温管名称
	insulationPipeName_4(4,"保温管"),
	
	//强电名称
	wireseName_1(1,"强电"),
	wireseName_2(2,"弱电"),
	
	//规格
	spec_1(1,"1.5平方"),
	spec_2(2,"2.5平方"),
	spec_3(3,"4平方"),
	
	//管道类型
	pipeType_1(1,"热水管"),
	pipeType_2(2,"冷水管"),
	pipeType_3(3,"排水管"),
	pipeType_4(4,"供水管"),
	pipeType_5(5,"回水管"),
	pipeType_6(6,"气管"),
	pipeType_7(7,"液管"),
	pipeType_8(8,"冷凝水管"),
	pipeType_9(9,"新风管"),
	pipeType_10(10,"排风管"),
	pipeType_11(11,"送风管"),
	pipeType_12(12,"回风管"),
	pipeType_13(13,"烟管"),
	pipeType_14(14,"采暖"),
	pipeType_15(15,"燃气管"),
	pipeType_16(16,"强电线管"),
	pipeType_17(17,"弱电线管"),
	
	//材料类型
	materialType_1(1,"PE-RT II型阻氧管"),
	materialType_6(6,"PPR"),
	materialType_10(10,"PVC"),
	materialType_11(11,"铜管"),
	materialType_12(12,"不锈钢"),
	materialType_13(13,"玻璃钢"),
	materialType_14(14,"镀锌钢管"),
	materialType_15(15,"塑料软管"),
	materialType_16(16,"复合软管"),
	materialType_17(17,"BV硬线"),
	materialType_18(18,"BVR软线"),
	materialType_19(19,"PE管"),
	
	//形状
	shape_0(0,"圆管"),
	shape_1(1,"方管(风道)"),
	shape_2(2,"扁管"),
	shape_3(3,"椭圆管"),
	
	//线路类型
	circuit_1(1,"照明"),
	circuit_3(3,"普通插座"),
	circuit_4(4,"厨房插座"),
	circuit_5(5,"卫生间插座"),
	
	//弱电类型
	weakWireType_1(1,"有线电视线"),
	weakWireType_2(2,"网线"),
	weakWireType_3(3,"电话线"),
	weakWireType_4(4,"无类型"),
	
	//房间类型
	roomType_1(1,"客厅"),
	roomType_2(2,"餐厅"),
	roomType_3(3,"客餐厅"),
	roomType_4(4,"卧室"),
	roomType_5(5,"主卧"),
	roomType_6(6,"次卧"),
	roomType_7(7,"儿童房"),
	roomType_8(8,"老人房"),
	roomType_9(9,"厨房"),
	roomType_10(10,"卫生间"),
	roomType_11(11,"主卫"),
	roomType_12(12,"次卫"),
	roomType_13(13,"门厅"),
	roomType_14(14,"阳台"),
	roomType_15(15,"玄关"),
	roomType_16(16,"玄关和阳台"),
	roomType_17(17,"小房间"),
	roomType_18(18,"楼梯间"),
	roomType_19(19,"书房"),
	roomType_20(20,"工作室"),
	roomType_21(21,"衣帽间"),
	roomType_22(22,"储藏室"),
	roomType_23(23,"保姆间"),
	roomType_24(24,"洗衣间"),
	roomType_25(25,"休闲厅"),
	roomType_26(26,"影视厅"),
	roomType_27(27,"过道"),
	roomType_28(28,"走廊"),
	roomType_29(29,"管道"),
	roomType_30(30,"淋浴房"),
	roomType_31(31,"AC"),
	roomType_32(32,"无")
	
	;
	
	
	private int key;
    private  String val;

    BimEnum(int key, String val){
        this.key = key;
        this.val = val;
    }

    public String getVal() {
        return val;
    }

    public int getKey(){
        return key;
    }
    
    public static String getKeyVal(String name){
    	String[] split = name.split("_");
    	if("".equals(split[1]) || "null".equals(split[1])){
    		return "";
    	}
    	for(BimEnum bimEnum:BimEnum.values()){
    		if(bimEnum.name().equals(name)){
    			return bimEnum.getVal();
    		}
    	}
    	return "未知";
    }
}
